package com.left.tcc.score.api;

import com.left.tcc.score.dto.ScoreAccountDTO;
import org.dromara.hmily.annotation.Hmily;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("tx-score")
@RequestMapping("/score")
public interface ScoreAccountApi {
    /**
     * 减积分
     *
     * @param obj
     * @return
     */
    @PostMapping(value = "/decrease")
    @Hmily
    public String decrease(@RequestBody ScoreAccountDTO obj);
}
